﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RepositoryFramework.Validators
{
	/// <summary>
	/// Interface <see cref="IValidator"/> decalre entity validator
	/// </summary>
	/// <typeparam name="T">The type of the entity.</typeparam>
	public interface IValidator<T>
	{
		/// <summary>
		/// Validates the specified entity.
		/// </summary>
		/// <param name="entity">The entity.</param>
		/// <returns></returns>
		IValidationResult Validate(T entity);
	}
}
